home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Online / OpenURL / Developer / Source / handler.h < prev    next >
C/C++ Source or Header  |  1999-09-26  |  813b  |  37 lines

  1. /* openurl.library - universal URL display and browser launcher library
  2. ** Written by Troels Walsted Hansen <troels@thule.no>
  3. ** Placed in the public domain.
  4. **
  5. ** Some definitions that need to be visible in both library and handler.
  6. */
  7.  
  8. enum { HMT_STARTUP, HMT_AREXX, HMT_LAUNCH };
  9.  
  10. struct HandlerMsg
  11. {
  12.     struct Message hm_Msg;
  13.     UWORD          hm_Type;
  14.     BOOL           hm_Success;
  15.  
  16.     union
  17.     {
  18.         struct
  19.         {
  20.             struct SignalSemaphore *hm_semaphore;
  21.             struct MsgPort         *hm_msgport;
  22.         } hm_startup;
  23.  
  24.         struct
  25.         {
  26.             STRPTR hm_arexxport;
  27.             STRPTR hm_arexxcmd;
  28.         } hm_arexx;
  29.     }
  30.     hm_msgdata;
  31. };
  32.  
  33. #define hm_Semaphore hm_msgdata.hm_startup.hm_semaphore
  34. #define hm_MsgPort   hm_msgdata.hm_startup.hm_msgport
  35. #define hm_ARexxPort hm_msgdata.hm_arexx.hm_arexxport
  36. #define hm_ARexxCmd  hm_msgdata.hm_arexx.hm_arexxcmd
  37.